package com.jiangmiao.babaisyou.domain;

/**
 * 公共父类
 */
public class Block {
    private static final int DEFAULT_WIDTH = 24;
    private static final int DEFAULT_HEIGHT = 24;

    /**
     * 位置坐标、宽、高
     */
    private int x,y,width,height;
    public boolean up, down, right, left;

    public Block(int x, int y) {
        this.x = x;
        this.y = y;
        this.width = DEFAULT_WIDTH;
        this.height = DEFAULT_HEIGHT;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }
}
